<template>
  <config-wrap :title="label">
    <div class="mb10 f-grey f12">{{mOptions.note}}</div>
    <div class="nav">
      
      <div class="nav-add" @click="addItem">新增数据</div>
    </div>
  </config-wrap>
</template>

<script lang="ts">
import { defineComponent, watch, ref, computed } from "vue";
import schemaMixin from "@/mixin/schemaMixin.js";
export default defineComponent({
  name: 'SchemaArray',
  props: ['label', 'options'],
  mixins: [schemaMixin],
  mounted() {
    console.log(this.mValue, 999)
  },
  setup(props) {
    console.log(props, 111)
    const mOption = computed(() => {
      return { ...props.options }
    })

    const addItem = () => {
      console.log('添加')
    }

    return {
      mOption,
      addItem
    }
  }
})
</script>
